# -*- coding: utf-8 -*- # 

class Title():
    """Search Option"""
    searchOptTitle = ("optName","optAuthor","optTraslator","optISBN")
    #TL_seachOptTitle_CN = (u"书名",u"作者",u"译者",u"ISBN号")
    #TL_seachOptTitle_EN = (u"Name",u"Author",u"Traslator",u"ISBN")
    TL_searchOptTitle_CN = {"optName":u"书名","optAuthor":u"作者","optTraslator":u"译者","optISBN":u"ISBN号"}
    TL_searchOptTitle_EN = {"optName":u"optName","optAuthor":u"optAuthor","optTraslator":u"optTraslator","optISBN":u"optISBN"}
    #TL_searchOptTitle_EN = {"Name":"Name","Author":"Author","Traslator":"Traslator","ISBN":"ISBN"}

#Locale
CHINESE = "CN"
ENGLISH = "EN"
JAPAN = "JP"

def getLable(attrName,locale = ENGLISH):
    tmpName = "TL_"+attrName+"_"+locale
    return getattr(Title, tmpName)
def getLableValue(attrName):
    return getattr(Title, attrName)